import ajax from "@/utils/request"

import '../mock/loginMock' 

// 封装一个登录的请求接口
export function loginFn(data){
    return ajax({
        url:'/api/getUserData',
        method: 'post',
        data
    })
}